<?php

/* @var $this \yii\web\View */
/* @var $content string */

use yii\helpers\Html;
use yii\bootstrap\Nav;
use yii\bootstrap\NavBar;
use yii\widgets\Breadcrumbs;
use frontend\assets\AppAsset;
use common\widgets\Alert;
use common\models\Setting\Setting;

//关键词
$keywords = '';
try
{
	$keywords = Setting::findOne(['code'=>'siteKeyword'])->value;
}
catch (ErrorException $e)
{

}
//描述
$description = '';
try
{
	$description = Setting::findOne(['code'=>'siteTitle'])->value;
}
catch (ErrorException $e)
{

}
//网站名称
$siteName = '';
try
{
	$siteName = Setting::findOne(['code'=>'siteName'])->value;
}
catch (ErrorException $e)
{

}
if(!$this->title)
{
	$this->title = $siteName;
}

//百度统计
$tongji = '';
try
{
	$tongji = Setting::findOne(['code'=>'tongji'])->value;
}
catch (ErrorException $e)
{

}
//微信二维码
                    $wb_chat = '';
                    try
                    {
                        $wb_chat = Setting::findOne(['code'=>'wb_chat'])->value;
                    }
                    catch (ErrorException $e)
                    {
                    
                    }
?>
<?php $this->beginPage() ?>
<!DOCTYPE html>
<html lang="<?= Yii::$app->language ?>">
<head>
    <meta charset="<?= Yii::$app->charset ?>">
    <meta name="viewport" content="width=device-width, initial-scale=1">
	<?= Html::cssFile('@web/css/xhreset.css')?>
    <?= Html::cssFile('@web/css/xhindex.css') ?>
    <?= Html::cssFile('@web/css/vipcss.css') ?>
    <?= Html::cssFile('@web/css/idangerous.swiper.css')?>
	<?= Html::jsFile('@web/js/jquery-1.9.1.min.js') ?>
	<?= Html::jsFile('@web/js/idangerous.swiper.min.js') ?>
    <?= Html::cssFile('@web/css/vipselect2.css')?>
    <?= Html::cssFile('@web/css/viphDate.css')?>
    
    <script type="text/javascript" src="<?= yii::getAlias('@web');?>/js/jquery.js"></script>
    <script type="text/javascript" src="<?= yii::getAlias('@web');?>/js/PCASClass.js"></script>
    <script type="text/javascript" src="<?= yii::getAlias('@web');?>/js/hDate.js"></script>

	
    <?= Html::csrfMetaTags() ?>
    <link href="<?= yii::getAlias('@web');?>/favicon.ico" rel="shortcut icon">
    <title><?= Html::encode($this->title); ?></title>
    <?php $this->registerMetaTag(['name'=>'keywords','content'=>$keywords]);?>
	<?php $this->registerMetaTag(['name'=>'description','content'=>$description]);?>
    <?php $this->head() ?>
	<?= $tongji ?>
	<style>
        /* Demo Syles */
        .device {
            position: relative;
            height: 323px;
            overflow: hidden;
        }
        .device .arrow-left {
            background: url(<?= yii::getAlias('@web');?><?= yii::getAlias('@web');?>/images/sleft.png) no-repeat left top;
            position: absolute;
            left: 0;
            top: 50%;
            margin-top: -15px;
            width: 44px;
            height: 44px;
            z-index: 10;
        }
        .device .arrow-right {
            background: url(<?= yii::getAlias('@web');?><?= yii::getAlias('@web');?>/images/sright.png) no-repeat left bottom;
            position: absolute;
            right: 0;
            top: 50%;
            margin-top: -15px;
            width: 44px;
            height: 44px;
            z-index: 10;
        }
        .swiper-container {
            height: 323px;
            width: 870px;
        }
        .pagination {
            position: absolute;
            left: 0;
            text-align: center;
            bottom:5px;
            width: 100%;
            z-index: 10;
        }
        .swiper-pagination-switch {
            display: inline-block;
            width: 10px;
            height: 10px;
            border-radius: 10px;
            background: #999;
            box-shadow: 0px 1px 2px #555 inset;
            margin: 0 5px;
            cursor: pointer;
        }
        .swiper-active-switch {
            background: #ea580b;
        }
    </style>
</head>
<body>
<?php $this->beginBody() ?>

<!--warrper-->
<div class="warrper">
    <?= $this->render('header.php'); ?>
    <?= $this->render('content.php',['content'=>$content]); ?>
    <?= $this->render('footer.php'); ?>
    <!--悬浮-->
    <div class="xfwx">
        <img src="/upload/<?= $wb_chat;?>" alt="" width="202" height="174">
    </div>
    <!--悬浮 end-->
</div>
<!--warrper end-->
<?php $this->endBody() ?>
</body>
        <?php if (isset($this->blocks['footer_scripts'])): ?>
        <?= $this->blocks['footer_scripts'] ?>
        <?php endif; ?>
</html>
<?php $this->endPage() ?>
